#ifndef TEXTURECHACHE_INCLUDED
#define TEXTURECHACHE_INCLUDED

#pragma once

#include <map>
#include "com_ptr.h"
#include "Texture.h"

class TextureCache
{
public:
	typedef ID3D11ShaderResourceView TexturType;
	void AddTexture(const std::string& path, com_ptr<TexturType> tex);
	TexturType* GetTexture(const std::string& path) const;
private:
	std::map<std::string, com_ptr<TexturType> > m_Cache;
};

#endif